﻿using QLInternet.Connection;
using QLInternet.Source;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace QLInternet.Model
{
    class SettingType
    {
        private int maKieu;
        private string tenKieu;

        public Connect conn = new Connect("localhost", "internet", "root", "");

        public QuanLy qL = new QuanLy();
        public int MaKieu
        {
            get { return maKieu; }
            set { maKieu = value; }
        }
        public string TenKieu
        {
            get { return tenKieu; }
            set { tenKieu = value; }
        }

        public ObservableCollection<SettingType> getDSKieuCD()
        {
            if (!conn.IsOpenning)
                conn.getConnect();
            return qL.loadKieuCaiDat(conn);

        }
        
    }
}
